import React, { Component } from 'react'
import { NavLink } from 'react-router-dom'

export class RouterLine extends Component {
  render() {
      const {routerConfig}=this.props
    return (
      <div>
          {routerConfig.length?routerConfig.map((item,index)=>{
              return <NavLink key={index} to={item.path}>
                  {/* <span>{item.titel}</span> */}
                  {item.title}
              </NavLink>
          }):"暂无路由"}
      </div>
    )
  }
}

export default RouterLine